package com.engine4cloud.tdf.education.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.engine4cloud.tdf.common.core.util.TenantTable;

import java.time.LocalDateTime;

/**
 * 心理辅导出席表
 *
 * @author wenjie
 * @date 2024-08-13 16:58:05
 */
@Data
@TenantTable
@TableName("psychological_counselling_attend")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "心理辅导出席表")
public class PsychologicalCounsellingAttendEntity extends Model<PsychologicalCounsellingAttendEntity> {


    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private Long id;

    /**
     * 心理辅导编号
     */
    @Schema(description = "心理辅导编号")
    private String fdbh;

    /**
     * 矫正对象编号
     */
    @Schema(description = "矫正对象编号")
    private String rybh;

    /**
     * 矫正对象姓名
     */
    @Schema(description = "矫正对象姓名")
    private String xm;

    /**
     * 是否参加
     */
    @Schema(description = "是否参加")
    private String hasAttend;

    /**
     * 心理辅导情况分析
     */
    @Schema(description = "心理辅导情况分析")
    private String qkfx;

    /**
     * 记录人
     */
    @Schema(description = "记录人")
    private String jlr;

    /**
     * 记录时间
     */
    @Schema(description = "记录时间")
    private LocalDateTime jlsj;

    /**
     * 创建人
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建人")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    /**
     * 更新人
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新人")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "是否删除")
    private String delFlag;

    /**
     * 租户id
     */
    @Schema(description = "租户id")
    private Long tenantId;
}